class CreateIngresos < ActiveRecord::Migration
  def self.up
    create_table :ingresos do |t|
      t.column :nombre, :string, :limit=>50, :null=>false
      t.column :desc, :text
    end
    
    add_column :pagos, :ingreso_id, :integer, :null=>false
    
  end

  def self.down
    remove_column :pagos, :ingreso_id
    drop_table :ingresos
  end
end
